package com.lp.company.response;

import com.lp.domain.company.Company;
import com.lp.domain.company.Department;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author lipengak
 * @Description
 * @Date 2020/1/31 17:03
 * @Copyright 2019-2020
 */
@Data
@NoArgsConstructor
public class DeptListResult {

    private String companyId;
    private String companyName;
    private String companyManage;
    private List<Department> depts;


    public DeptListResult(Company company, List<Department> list) {
        this.companyId = company.getId();
        this.companyName = company.getName();
        this.companyManage = company.getLegalRepresentative();
        this.depts = list;
    }


}
